﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using H2.NET.Controls;
using H2.NET.Data.Common;
using H2.NET.Business;

namespace H2.NET.Web.Pages
{
    public partial class GVU : TaskControl
    {
        #region 事件 Load (页面)
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            gv_TC.DynamicColumn.Add(new BoundColumn2("00", "Date", BoundColumnType2.Calender, 90, Align.Left, true, "name", InputType.None, null));
            gv_TC.DynamicColumn.Add(new BoundColumn2("01", "Sales Organization", BoundColumnType2.DropDownList, -1, Align.Left, true, "sales_organization", InputType.None, new string[5]{"1","2","3","4","5"}));

            if (!Page.IsPostBack)
            {
                List<m_SalesOrg> blank = new List<m_SalesOrg>();
                for (int i = 0; i < 4; i++)
                {
                    blank.Add(new m_SalesOrg());
                    //blank[i].Name = (i + 1).ToString();
                }
                gv_TC.DataSource = blank;
            }
        }
        #endregion
    }
}
